< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03120313.xhp

(section: convertfromurl) (bookmark: bm_id3153894)
ConvertFromURL function

ConvertFromURL 関数

ConvertFromURL Function [Runtime]
ConvertFromURL 関数 [実行時](hd_id3153894.1)

Converts a file URL to a system file name.
ファイル URL をシステムファイル名へ変換します。(par_id3147226.2)

(/section: convertfromurl)

Syntax:
構文:(hd_id3143267.3)

ConvertFromURL(filename)
ConvertFromURL(filename)(par_id3154142.4)

Return value:
戻り値:(hd_id3159157.5)

String
文字列(par_id3150669.6)

Parameters:
パラメータ:(hd_id3143270.7)

Filename: A file name as a string.
Filename: ファイル名を示す文字列。(par_id3156023.8)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

Example:
例:(hd_id3154760.9)

systemFile$ = "c:\folder\mytext.txt"
systemFile$ = "c:\folder\mytext.txt"(par_id3148664.10)

url$ = ConvertToURL( systemFile$ )
url$ = ConvertToURL( systemFile$ )(par_id3150541.11)

print url$
print url$(par_id3150792.12)

systemFileAgain$ = ConvertFromURL( url$ )
systemFileAgain$ = ConvertFromURL( url$ )(par_id3154367.13)

print systemFileAgain$
print systemFileAgain$(par_id3153194.14)


< Prev / Next >